import React from "react";
import { LayoutIndex } from '../constant'
import type { RouteObjects } from '../interface'
import lazyLoad from '../utils/lazyLoad'

const homeRouter: Array<RouteObjects> = [
  {
    element: <LayoutIndex />,
    meta: {
      title: '外部链接',
    },
    children: [
      {
        path: '/link/gitee',
        element: lazyLoad(React.lazy(() => import('../../pages/link/gitee/index'))),
        meta: {
          requiresAuth: true,
          title: 'Gitee 仓库',
          key: 'gitee'
        }
      }
    ]
  }
]

export default homeRouter